import { defineStore } from 'pinia';
import { ref, computed } from 'vue';

export const useCounterStore = defineStore('counter',  {
    state: () => ({
        count: 0
    }),

    actions: {
        increment() {
            this.count++;
        }
    },

    getters: {
        doubleCount: () => this.count * 2
    }

});